package com.trump.baiduim.dao;

import com.trump.baiduim.model.Friendship;
import com.trump.baiduim.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FriendshipDao {
    int deleteByPrimaryKey(Long friendshipId);

    int insert(Friendship record);

    int insertSelective(Friendship record);

    Friendship selectByPrimaryKey(Long friendshipId);

    int updateByPrimaryKeySelective(Friendship record);

    int updateByPrimaryKey(Friendship record);

    List<User> findFriendList(String userAccount);

}